Javascript - Promises
Broken Promises - James Snell, NearForm - YouTube
During this training, we'll do this command to trace async event
node --trace-event-categories=v8,async_hooks code.js
First example
// When is javascript running?
setInterval(() => {
for (var n = 0; n < 1e9; n++) {}
console.log('test');
}, 500)